From 7af4bdee8f016e544a6fda75c04c7725333e7a2a Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 20 Nov 2023 21:21:15 +0000 Subject: Add instructions after defining function but before defining vars --- ...ition(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | 2 ++ 1 file changed, 2 insertions(+) (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:canCaptureFreeVariablesThatAreSetAfterDefinition(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:canCaptureFreeVariablesThatAreSetAfterDefinition(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:canCaptureFreeVariablesThatAreSetAfterDefinition(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index b405a2b5..8595a76f 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:canCaptureFreeVariablesThatAreSetAfterDefinition(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:canCaptureFreeVariablesThatAreSetAfterDefinition(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -43,6 +43,7 @@ Instructions: value=(function-ptr "shed__function__f__0") ) (data-ptr-to-int (local "closure__f__0") (local "closurePointer__f__0")) + (local-store (local "a") (int 42)) ( memory-store pointer=(local "closurePointer__f__0") @@ -50,6 +51,7 @@ Instructions: offset=(1 0) value=(local "local__a") ) + (local-store (local "b") (int 47)) ( memory-store pointer=(local "closurePointer__f__0") -- cgit v1.2.3